package com.h2n.framework.dto;

import java.util.Map;
import java.util.HashMap;

/**
 * Created by IntelliJ IDEA.
 * User: NhatNV
 * Date: Sep 28, 2009
 * Time: 1:59:59 AM
 * To change this template use File | Settings | File Templates.
 */
public class MemberModuleDTO {
  private int id;
  public void setId(int _id){
    this.id = _id;
  }
  public int getId(){
    return this.id;
  }

  private int member_Id;
  public void setMember_Id(int _memberId){
    this.member_Id = _memberId;
  }
  public int getMember_Id(){
    return this.member_Id;
  }

  private int module_Id;
  public void setModule_Id(int _moduleId){
    this.module_Id = _moduleId;
  }
  public int getModule_Id(){
    return this.module_Id;
  }

  public enum Parameters{
    p_id,
    p_member_id,
    p_module_id;
  }

  public Map getMap(){
    Map map = new HashMap();
    map.put(Parameters.p_id.toString(),this.id);
    map.put(Parameters.p_member_id.toString(),this.member_Id);
    map.put(Parameters.p_module_id.toString(),this.module_Id);

    return map;
  }

  public static final String INSERT_PROCEDURE = "member_modules_insert";
  public static final String UPDATE_PROCEDURE = "member_modules_update";
  public static final String DELETE_PROCEDURE = "member_module_delete";
}
